import request from '@/util/request'

// 教师查询
export const getTeacherAPI = (params) => {
  return request.get('/admin/teacher', { params })
}

// 教师添加
export const addTeacherAPI = (data) => {
  return request.post('/admin/teacher', data)
}

// 教师更新
export const updateTeacherAPI = (data) => {
  return request.put('/admin/teacher', data)
}

// 教师删除
export const deleteTeacherAPI = (params) => {
  return request.delete('/admin/teacher', { params })
}
